package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单流水号
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-15
 */
@TableName("hebi_order")
@Getter
@Setter
public class HebiOrder extends Model<HebiOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * uuid
     */
	@TableId(value="uuid")
	private String uuid;

    /**
     * 是否删除 0：否 1：是
     */
	@TableField("is_del")
	private Integer isDel;
    /**
     * 创建人编号
     */
	@TableField("created_by")
	private Integer createdBy;
    /**
     * 创建时间
     */
	@TableField("created_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createdTime;
    /**
     * 修改人编号
     */
	@TableField("modified_by")
	private Integer modifiedBy;
    /**
     * 最后修改时间
     */
	@TableField("modified_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date modifiedTime;
    /**
     * 订单状态 冻结：freeze 返还：restitution 转出：rollout
     */
	@TableField("status")
	private String status;


	@TableField("biz_id")
	private String bizId;

	@TableField("user_id")
	private Integer userId;


	@TableField("biz_type")
	private String bizType;


	@TableField("hebi_amount")
	private BigDecimal hebiAmount;

	@TableField("discount_amount")
	private BigDecimal discountAmount;

	@TableField("result_status")
	private String resultStatus;

	@TableField("from_user_id")
	private Integer fromUserId;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
